<template>
	<view class="empty">
		<image :src="baseImg" mode="widthFix"></image>
		<text>{{content}}</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				baseImg: ""
			}
		},
		props: {
			content: {
				type: String,
				default: '暂无内容'
			}
		}
	}
</script>

<style>
	.empty{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 20px;
	}
	
	.empty image{
		width: 80px;
	}
	
	.empty text{
		font-size: 16px;
		margin-top: 10px;
		color: #999999;
	}
	
</style>
